
var loadBox = function loadbox() {
    $.ajax({
        type:"POST",
        url:"selTittleCommondTable",
        dataType:"Json",
        success:function (data){				//成功后触发
            if(data!=null){
                $(".box").find("dl").remove();
                // $(".box").childNodes.remove();
                var html = "<dl>"
                $.each(data,function (index,object) {
                    console.log()
                    html+="<dt>"+object.type_name+"</dt>"
                    $.each(object.tchilden,function (index,obj) {
                        html+="<dd><a href='product-list.jsp?common_id="+obj.common_id+"&typename="+obj.type_name+"'>"+obj.type_name+"</a></dd>";
                    });
                });
                html += "</dl>"
                $(".box").append(html);
            }else{

            }
        },
        error:function(jqxhr,textstatus,errorThrown){		//发生错误时触发
            console.log("错误发生");
        }
    })
}